package com.bm.api.service;

import com.bm.common.dto.RoomUerDto;
import com.bm.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * YoungMan, may the force be with you.
 *
 * @Author: 吃个小布丁吧
 * @Date: 2022/07/21/8:37
 */
@FeignClient(value="bm-Server")
public interface RoomUserService {
    @GetMapping("/server/roomuser/select.do")
    R select(@RequestParam("roomid")int roomid);
    @PostMapping("/server/roomuser/insert.do")
    R insert (@RequestBody RoomUerDto dto);
    @PostMapping("/server/roomuser/del.do")
    R del(@RequestParam Integer uid,@RequestParam Integer roomid);
    @PostMapping("/server/roomuser/randm.do")
    R randm();
    @PostMapping("/server/roomuser/gettwo.do")
    R getTwo(@RequestParam Integer uid,@RequestParam Integer roomid);
    @PostMapping("/server/roomuser/getfour")
    R getfour(@RequestParam Integer uid,@RequestParam Integer roomid);
    @PostMapping("/server/roomuser/play.do")
    R play(@RequestParam Integer uid);
}
